|
|||||||||||||||||||
This license of Clover is provided to support the development of Flock only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
MetaData.java | - | 83.3% | 83.3% | 83.3% |
|
1 |
package net.sf.flock; |
|
2 |
|
|
3 |
import java.io.Serializable; |
|
4 |
import java.util.Map; |
|
5 |
import java.util.HashMap; |
|
6 |
|
|
7 |
public class MetaData implements Serializable { |
|
8 |
|
|
9 |
private Map data; |
|
10 |
|
|
11 | 5 |
public MetaData() { |
12 | 5 |
this.data = new HashMap(); |
13 |
} |
|
14 |
|
|
15 |
/** |
|
16 |
* Copy constructor. |
|
17 |
* @param metaData |
|
18 |
*/ |
|
19 | 1 |
public MetaData(MetaData metaData) { |
20 | 1 |
this.data = new HashMap( metaData.getMetaData() ); |
21 |
} |
|
22 |
|
|
23 | 0 |
public String get(String key) { |
24 | 0 |
return (String)data.get(key); |
25 |
} |
|
26 |
|
|
27 | 3 |
public void set(String key, String value) { |
28 | 3 |
this.data.put(key, value); |
29 |
} |
|
30 |
|
|
31 | 18 |
protected Map getMetaData() { |
32 | 18 |
return this.data; |
33 |
} |
|
34 |
|
|
35 | 4 |
protected void setMetaData(Map metaData) { |
36 | 4 |
this.data = metaData; |
37 |
} |
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
} |
|
42 |
|
|